package com.easonji.admin.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 职务表
 * </p>
 *
 * @author easonji
 * @since 2018-09-30
 */

@TableName("sys_post")

public class Post extends Model<Post> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "p_id", type = IdType.AUTO)
    private Integer pId;

    @TableField("p_name")
    private String pName;

    @TableField("p_create_user")
    private Integer pCreateUser;

    @TableField("p_create_date")
    private Date pCreateDate;

    @TableField("p_update_user")
    private Integer pUpdateUser;

    @TableField("p_update_date")
    private Date pUpdateDate;

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }
    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }
    public Integer getpCreateUser() {
        return pCreateUser;
    }

    public void setpCreateUser(Integer pCreateUser) {
        this.pCreateUser = pCreateUser;
    }
    public Date getpCreateDate() {
        return pCreateDate;
    }

    public void setpCreateDate(Date pCreateDate) {
        this.pCreateDate = pCreateDate;
    }
    public Integer getpUpdateUser() {
        return pUpdateUser;
    }

    public void setpUpdateUser(Integer pUpdateUser) {
        this.pUpdateUser = pUpdateUser;
    }
    public Date getpUpdateDate() {
        return pUpdateDate;
    }

    public void setpUpdateDate(Date pUpdateDate) {
        this.pUpdateDate = pUpdateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.pId;
    }

    @Override
    public String toString() {
        return "Post{" +
        "pId=" + pId +
        ", pName=" + pName +
        ", pCreateUser=" + pCreateUser +
        ", pCreateDate=" + pCreateDate +
        ", pUpdateUser=" + pUpdateUser +
        ", pUpdateDate=" + pUpdateDate +
        "}";
    }
}
